package com.sihai.ehr.service;

import com.sihai.core.Limit;
import com.sihai.core.LimitedList;
import com.sihai.core.Sorter;
import com.sihai.ehr.model.biz.ExamQuanItemSet;
import com.sihai.ehr.model.biz.ExamQuanSet;
import com.sihai.ehr.web.pojo.ExamBaseConfigPojo;
import com.sihai.ehr.web.pojo.ExamItemSetPojo;

/**
 * 定量考核管理service
 *
 * 
 */
public interface ExamItemSetService {

    LimitedList<ExamItemSetPojo> findByTopOrganization(Long organizationId, Limit limit, Sorter sorter);

    LimitedList<ExamItemSetPojo> findByOrganization(Long organizationId, Limit limit, Sorter sorter);

    ExamQuanSet getExamQuanSet(Long id);

    LimitedList<ExamQuanItemSet> findByExamQuanSet(Long id,Limit limit,Sorter sorter);

    public void saveExamQuanSet(ExamQuanSet set);

    /**
     * 保存考核项目
     * @param item
     */
    public void saveExamItem(ExamQuanItemSet item);

    public ExamQuanItemSet findExamQuanItemSetById(Long id);

    public ExamQuanSet findExamQuanSetByDutyId(Long dutyId);

    public void removeQuanItem(String itemIds,Long quanSetId);

    public Float getItemSumByQuanSetId(Long quanSetId);
}
